from django import forms
from machete.models import *

class CreateGreetingForm(forms.ModelForm):
    class Meta:
        model = Greeting
        exclude = ['author', 'date']

class AdminCreatePageForm(forms.ModelForm):
    content = forms.Textarea()
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Page
        
class AdminCreateCategoryForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Category
    
class AdminCreateSlideshowForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Slideshow
        
class AdminCreatePhotoForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Photo
        
# Not used #
class AdminCreateLinkSlideshowPageForm(forms.ModelForm):
    class Meta:
        model = LinkSlideshowPage
        
# Not used #
class AdminCreateLinkPhotoSlideshowForm(forms.ModelForm):
    class Meta:
        model = LinkPhotoSlideshow
        
        
        
class AdminUpdatePageForm(forms.ModelForm):
    content = forms.Textarea()
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Page
        
class AdminUpdateCategoryForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Category
        
class AdminUpdateSlideshowForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Slideshow
        
class AdminUpdatePhotoForm(forms.ModelForm):
    title = forms.CharField(max_length=30)
    
    class Meta:
        model = Photo
                
# Not used #
class AdminUpdateLinkSlideshowPageForm(forms.ModelForm):
    class Meta:
        model = LinkSlideshowPage

# Not used #
class AdminUpdateLinkPhotoSlideshowForm(forms.ModelForm):
    class Meta:
        model = LinkPhotoSlideshow